PublishPress\Future\Modules\Expirator\Models\ExpirablePostModel C

Total Complexity 114
Dependencies 15
Dependents 15
Total lines 974
Lines of code 541
Logical lines of code 275
Comment lines 115
Methods 34
Properties 18

Methods 34

Method Rating Maintainability Complexity Lines of code
sendEmail()
B
33 11 121
expire()
A
43 11 49
getExpirationDateString()
A
54 8 21
syncScheduleWithPostMeta()
A
48 7 34
getExpirationType()
A
50 7 34
getExpirationTaxonomy()
S
57 6 18
getExpirationNewStatus()
S
56 5 19
getPermalink()
S
61 5 13
getTitle()
S
61 5 13
getPostType()
S
61 5 13
getExpirationCategoryIDs()
S
60 4 14
calcMetadataHash()
S
58 3 16
getExpirationAction()
S
61 3 14
getExpirationCategoryNames()
S
61 3 13
setupFutureActionWithDefaultData()
S
57 2 18
getExtraData()
S
65 3 10
isExpirationEnabled()
S
66 3 9
getExpirationDataAsArray()
S
58 1 17
updateMetadataHash()
S
71 2 6
hasActionScheduledInPostMeta()
S
71 2 5
getMetadataHash()
S
66 2 9
__construct()
S
58 1 15
getExpirationOptions()
S
72 2 6
forceTimestampToUnixtime()
S
71 2 6
getPostTypeSingularLabel()
S
67 2 8
deleteExpirationPostMeta()
S
64 1 11
disableExpiration()
S
80 1 3
expirationEmailIsEnabled()
S
72 1 6
logOnAction()
S
75 1 4
unscheduleAction()
S
80 1 3
getExpirationDateAsUnixTime()
S
75 1 4
removeLegacyMetadataHash()
S
81 1 3
registerNoticeMessage()
S
78 1 3
shouldAutoEnable()
S
81 1 3